package com.example.demo.service;



import com.example.demo.entity.Act_template;
import com.example.demo.entity.Activity;
import com.example.demo.pojo.PlannerResult;
import com.example.demo.vo.Activityvo;
import com.example.demo.vo.ScheduleVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ActivityService  {

    //查活动模板

    PlannerResult<List<Act_template>> allact_template();

    //建活动

    PlannerResult<Integer> create (Activityvo activityvo);

    //建日程

    PlannerResult<String> schCreate (ScheduleVo scheduleVo);

    //修改活动状态
    PlannerResult<String> setState (Integer actid, String nextstate);


    PlannerResult<String>  update(Activityvo activityvo);

    PlannerResult<List<Activity>> findByKey(String keystring);
}
